#pragma once

namespace My {

// MaskEditor inlines:

inline ZoomBench & MaskEditor::GetBench()
	{ return m_Bench; }

inline bool MaskEditor::IsOpen() const
	{ return m_pOwner != 0; }

inline const BitMask & MaskEditor::GetBuffer() const
	{ return m_Buffer; }

inline BitMask & MaskEditor::GetBuffer()
	{ return m_Buffer; }

inline BrushTool * MaskEditor::Brush() const
	{ return &const_cast<MaskEditor &>(* this).m_Brush; }

inline FillTool * MaskEditor::Fill() const
	{ return &const_cast<MaskEditor &>(* this).m_Fill; }

inline Extent MaskEditor::GetDim() const
	{ return m_Buffer.dim(); }

inline MaskOwner * MaskEditor::GetMaskOwner() const
	{ return m_pOwner; }

} // My
